package com.example.shopsystem.service.Impl;

import com.example.shopsystem.entity.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;


public interface UserService {
    Boolean register(User user);//注册

    Boolean signIn(User user);//登录

    Boolean fillAddress(User user);//填写地址

    Boolean fillMoneyPwd(User user);//填写支付密码

    User viewInfo(String id);//查看我的信息

    Boolean modifyMoney(User user, double outMoney, int type);//修改金额

    Boolean ModifyInfo(User user);//修改个人信息

    List<ShopCar> viewShopCar(String userId);//查看购物车 返回购物车信息


    Boolean updateShopCar(String userId, String goodId, int goodNumber);//更新购物车商品

    Boolean establishOrder(Order order);//创建订单

    Boolean evaluateOrder(String userId, int orderId);//评价订单

    Boolean returnGoods(List<Return> ReturnGoodMap, ReturnGood returnGood);//退货

    List<UserCost> viewUserCost(String userId);//查看所有账单
}
